package com.xie.o2o.util;

/**
 * 传入页码转换成数据库行码
 * @create: xie
 */
public class PageCalculator {
    public static int calculateRowIndex(int pageIndex,int pageSize){
        return (pageIndex>0)?(pageIndex-1)*pageSize:0;
    }

}
